<template>
	<view class="bg_size">
		<view class="logo_top">
			<image class="logo_size" src="@/static/img/bg.png"></image>
			<view class="title_size">金维订奶商家后台</view>
		</view>
		<view class="login_num">
			<view class="Account">账号</view>
			<u-input v-model="acc" type="text" placeholder="请输入账号" :clearable="false" />
			<view class="xian"></view>
		</view>
		<view class="login_num">
			<view class="Account" style="margin-top: 50rpx;">密码</view>
			<u-input v-model="pass" type="password" :border="false" password-icon="true" :clearable="false"
				placeholder="请输入密码" />
			<view class="xian"></view>
		</view>
		<view class="Forgot">
			<image class="Forgot_img" src="@/static/img/forgot_pwd.png"></image>
			<view class="Forgot_size">忘记密码？</view>
		</view>
		<view class="login" @click="login">登录</view>
		<view class="enroll">
			<view class="enroll_l">没有账号？</view>
			<view class="enroll_r" @click="signIn('/pages/login/sign-in')">立即注册</view>
		</view>
		<view class="xy_bottom">
			<u-checkbox-group @change="checkboxGroupChange">
				<u-checkbox @change="checkboxChange" v-model="item.checked" v-for="(item,index) in list" :key="index"
					:name="item.name" shape="circle">
					<text class="qyd">{{item.name}}</text>
					<text class="xy" @click.stop="toPath('益康多用户协议')">《益康多用户协议》</text>
					<text class="qyd">和</text>
					<text class="xy" @click.stop="toPath('用户隐私政策')">《用户隐私政策》</text></u-checkbox>
			</u-checkbox-group>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				acc: '',
				pass: '',
				list: [{
					name: '请阅读',
					checked: false,
					disabled: false
				}]
			}
		},
		methods: {
			signIn(path) {
				uni.navigateTo({
					url: path
				})
			},
			toPath(type) {
				uni.navigateTo({
					url: `/pages/agreement/agreement?title=${type}`
				})
			},
			login() {
				uni.switchTab({
					url: '/pages/index/index'
				})
			},
			checkboxChange(e) {},
			checkboxGroupChange(e) {},
		}
	}
</script>

<style scoped lang="scss">
	.bg_size {
		padding: 0 60rpx;

		.logo_top {
			text-align: center;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			margin: 46rpx 0rpx 100rpx 0rpx;

			.logo_size {
				width: 150rpx;
				height: 140rpx;
				margin-bottom: 20rpx;
			}

			.title_size {
				font-size: 50rpx;
				font-weight: 500;
				line-height: 120rpx;
				color: rgba(31, 35, 41, 1);
			}
		}

		.login_num {
			margin-bottom: 60rpx;
			height: 140rpx;

			.Account {
				font-size: 30rpx;
				font-weight: 500;
				line-height: 43rpx;
				color: #17271B;
				margin-bottom: 30rpx;
			}

			.input_acc {
				border-bottom: 1rpx solid red;
			}

			.xian {
				width: 100%;
				height: 2rpx;
				background-color: rgba(208, 211, 213, 1);
				margin-top: 30rpx;
			}
		}

		.Forgot {
			display: flex;
			align-items: center;
			justify-content: flex-end;
			margin-bottom: 100rpx;

			.Forgot_img {
				width: 32rpx;
				height: 32rpx;
				margin-right: 10rpx;
			}

			.Forgot_size {
				font-size: 28rpx;
				font-weight: 400;
				line-height: 40rpx;
				color: #187CE7;
			}
		}

		.login {
			height: 100rpx;
			background: linear-gradient(90deg, rgba(41, 166, 241, 1) 0%, rgba(21, 116, 229, 1) 100%), linear-gradient(90deg, rgba(38, 177, 161, 1) 0%, rgba(111, 208, 179, 1) 100%);
			background-blend-mode: normalnormal;
			border-radius: 50rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 30rpx;
			font-weight: 400;
			line-height: 43rpx;
			color: #FFF;
			margin-bottom: 50rpx;
		}

		.enroll {
			display: flex;
			align-items: center;
			justify-content: center;

			.enroll_l {
				font-size: 28rpx;
				font-weight: 400;
				line-height: 40rpx;
				color: #8F959E;
			}

			.enroll_r {
				font-size: 28rpx;
				font-weight: 400;
				line-height: 40rpx;
				color: #187CE7;
			}
		}
	}

	.xy_bottom {
		position: fixed;
		bottom: 93rpx;

		.qyd {
			font-size: 26rpx;
			font-weight: 500;
			color: #707070;
		}

		.xy {
			font-size: 26rpx;
			font-weight: 500;
			color: #187CE7;
		}
	}
</style>

<style>
	page {
		background-color: #FFF;
	}
</style>
	